package com.hnnu.shoppingtoghter.demo.service;

import com.hnnu.shoppingtoghter.demo.entity.Project;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @Description:
 * @Author: liu_cheng_xi
 * @CreateTime： 2022/7/1 8:40
 */
public interface ProjectService {
    /**
     * @Description: 查询商品
     * @Author: liu_cheng_xi
     * @CreateTime: 2022/7/1 8:43
     * @param: null
     * @return: null
     **/
    List<Project> selectListByProject(Project project);

    /**
     * @Description: 将商品对象插入到表里
     * @Author: liu_cheng_xi
     * @CreateTime: 2022/7/4 11:20
     * @param: null
     * @return: null
     **/
    int insertProject(Project project);

    /**
     * @Description: 根据商品ID 获取数据库的商品全部信息
     * @Author: liu_cheng_xi
     * @CreateTime: 2022/7/5 11:15
     * @param: null
     * @return: null
     **/
    Project selectProjectById(Integer commodityId);

    /**
     * @Description: 通过商品ID来对对应的商品进行更新
     * @Author: liu_cheng_xi
     * @CreateTime: 2022/7/5 21:38
     * @param: null
     * @return: null
     **/
    int Update(Project project);

    /**
     * @Description: 删除商品
     * @Author: liu_cheng_xi
     * @CreateTime: 2022/7/6 15:28
     * @param: commodityId
     * @return: int
     **/

    int DeleteProject(Integer commodityId);
    
    /**
     * @Description: TODO
     * @Author: liu_cheng_xi 
     * @CreateTime: 2022/7/6 22:50
    * @param: null
    * @return: null
     **/
    List<Project> selectProjectByUser(Project project);
}
